package com.link.base.base.questionnairesurvey.service;

import com.link.base.base.questionnairesurvey.dao.mybatis.mapper.SurveyOrgMapper;
import com.link.base.base.questionnairesurvey.model.SurveyOrg;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 刘鲁
 * @date 2018-07-04
 * @comments 问卷组织关系
 */
@Service
public class SurveyOrgServiceImpl extends BasicServiceImpl<SurveyOrg> implements SurveyOrgService {

    @Resource
    private SurveyOrgMapper surveyOrgMapper;

    @Override
    public BasicMapper<SurveyOrg> getBasicMapper() {
        return surveyOrgMapper;
    }

    @Override
    public List<SurveyOrg> queryByUserID(SurveyOrg surveyOrg) {
        return surveyOrgMapper.queryByUserID(surveyOrg);
    }
}
